package com.example.dc.mapper;


import com.example.dc.domain.Sickness;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper
public interface SicknessMapper {

    @Insert("insert into d_user_sickness(user_id,sickness_id,create_time) values (#{userId},#{sickId},now())")
    void addSickness(Integer userId, Integer sickId);

    @Select("select * from d_sickness")
    List<Sickness> getSickness();
}
